<template>
  <div>
    <h1>看控制台</h1>
    <input type="text" v-model="test" />
  </div>
</template> 

<script>
let _ = require("lodash");
export default {
  name: "HelloWorld",
  props: {
    msg: String
  },
  data() {
    return {
      test: "",
      test2: ""
    };
  },
  watch: {
    test: {
      handler: _.debounce(val => {
        console.log(val);
      }, 300)
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
